This is a description of simple_choice2
def simple_choice2(sunny, raining):
if (sunny or raining):
return sunny
return not raining
Function Call | Return Value | |||
---|---|---|---|---|
simple_choice2(True, True) | → | |||
simple_choice2(True, False) | → | |||
simple_choice2(False, True) | → | |||
simple_choice2(False, False) | → |
Experiment with this code on Gitpod.io
Work on a similar problem on CodingBat.com